#if !defined(AFX_CLIENTSOCKET_H__B033E907_9B71_4A49_9F70_D972796956F3__INCLUDED_)
#define AFX_CLIENTSOCKET_H__B033E907_9B71_4A49_9F70_D972796956F3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ClientSocket.h : header file
//



/////////////////////////////////////////////////////////////////////////////
// CClientSocket command target
#include <afxsock.h>
class chessboard;
class CFivechessDlg;
class CMessg;

class CClientSocket : public CSocket
{
// Attributes
public:

// Operations
public:
	CClientSocket();
	virtual ~CClientSocket();
	chessboard* pchessboard;
	CFivechessDlg* pDlg;
	CArchive* m_aSessionIn;
	CArchive* m_aSessionOut;
	CSocketFile* m_sfSocketFile;

	void Init(CFivechessDlg* pDlg,chessboard* pchessboard);
	BOOL SendMessage(CMessg * msg);

// Overrides
public:
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClientSocket)
	public:
	virtual void OnClose(int nErrorCode);
	virtual void OnReceive(int nErrorCode);
	//}}AFX_VIRTUAL

	// Generated message map functions
	//{{AFX_MSG(CClientSocket)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

// Implementation
protected:
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CLIENTSOCKET_H__B033E907_9B71_4A49_9F70_D972796956F3__INCLUDED_)
